package com.ant.myagile

class Team_Member {
	Team team
	Member member
	EnumPosition position = EnumPosition.DEVELOPER
	boolean isAccepted=false;
	String token="";
	Date tokenDate=new Date();
	static mapping = {
		version(false)
	}
	static constraints = {
		team (nullable: false)
		member(nullable: false)
		token(nullable: true)
		tokenDate(nullable: true)
		team(unique: ['member'])
	}
	static belongsTo = [team: Team, member: Member]
}
